package com.czxy.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author zhangmengxiang1@itcast.cn
 * @version 1.0
 * @date 2020/2/3
 */
@Table(name = "hotel_staff")
@Data
public class Staff {
    /*
    CREATE TABLE `hotel_staff` (
  `hid` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(32) DEFAULT NULL,
  `password` varchar(32) DEFAULT NULL,
  `gender` int(11) DEFAULT NULL,
  `iphone` varchar(32) DEFAULT NULL,
  `idnumber` varchar(32) DEFAULT NULL,
  `roseid` int(11) DEFAULT NULL,
  `state` int(11) DEFAULT NULL,
  PRIMARY KEY (`hid`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8*/
    @Id
    private Integer hid;
    private String username;
    private String password;
    private Integer gender;
    private String iphone;
    private String idnumber;
    private Integer roseid;
    private Integer state;

    private Rose rose; //角色
}
